package semiproject.models;

public class BookVO {
		private String bkno;
		private String name;
		private String publisher;
		private String writer;
		private String genre;
		private int price;
		private boolean isRent;
		private String regedate;
		
		//생성자
		public BookVO(String name,String publisher,
									String writer,	String genre,int price){

			this.name = name;
			this.publisher = publisher;
			this.writer = writer;
			this.genre = genre;
			this.price = price;

		}

		//셋겟
		public String getBkno() {
			return bkno;
		}

		public void setBkno(String bkno) {
			this.bkno = bkno;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getPublisher() {
			return publisher;
		}

		public void setPublisher(String publisher) {
			this.publisher = publisher;
		}

		public String getWriter() {
			return writer;
		}

		public void setWriter(String writer) {
			this.writer = writer;
		}

		public String getGenre() {
			return genre;
		}

		public void setGenre(String genre) {
			this.genre = genre;
		}

		public int getPrice() {
			return price;
		}

		public void setPrice(int price) {
			this.price = price;
		}

		public boolean getIsRent() {
			return isRent;
		}

		public void setIsRent(boolean isRent) {
			this.isRent = isRent;
		}
		
		public String getRegedate() {
			return regedate;
		}

		public void setRegedate(String regedate) {
			this.regedate = regedate;
		}

		//toString
		@Override
		public String toString() {
			StringBuilder sb = new StringBuilder();
			sb.append(bkno).append("/")
				.append(name).append("/")
				.append(publisher).append("/")
				.append(writer).append("/")
				.append(price).append("/")
				.append(isRent). append("/")
				.append(genre). append("/")
				.append(regedate). append("/");
			
			return sb.toString();		
			}
}
